#include <stdio.h>

int main(int argc,char *argv[]) 
{

	int a[10] = {5,3,7,5,2,3,5,56,7,2};

	int i,j;

	int temp;

	for(j = 9; j >= 1; j--)
	{
	
		for(i = 0; i < j; i++)
		{
			if(a[i] > a[i+1])
			{
				temp = a[i];
				a[i] = a[i+1];
				a[i+1] = temp;			
			}
		}
	}

	for(i = 0; i < 10; i++)
	{

		printf("%d \t",a[i]); 
	}

	printf("\n"); 

	return 0;
}
